<?php

require_once 'Smarty/View.php';

class Default_Bootstrap extends Zend_Application_Module_Bootstrap
{

	protected function _initView()
	{
		$view = new Smarty_View();
		Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer')
			->setView($view)
			->setViewSuffix('tpl');
		Zend_View_Helper_PaginationControl::setDefaultViewPartial('paginator.tpl');
	}
	
	protected function _initPlugins()
	{
		$options = $this->getApplication()->getOptions();
		Zend_Controller_Front::getInstance()
			->registerPlugin(new Default_Plugin_User())
			->registerPlugin(new Default_Plugin_Globalize($options))
			->registerPlugin(new Default_Plugin_Navigation());
	}

}
